import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login/index.vue')
  },
  {
    path: '/',
    component: () => import('../components/Layout.vue'),
    children: [
      {
        path: 'home',
        name: 'Home',
        component: () => import('../views/home/index.vue')
      },
      {
        path: 'virtual',
        name: 'VirtualCard',
        component: () => import('../views/virtual-card/index.vue')
      },
      {
        path: 'vip',
        name: 'VIP',
        component: () => import('../views/vip/index.vue')
      },
      {
        path: 'notice',
        name: 'Notice',
        component: () => import('../views/notice/index.vue')
      },
      {
        path: 'user',
        name: 'UserCenter',
        component: () => import('../views/user-center/index.vue'),
      },
      {
        path: 'money',
        name: 'Money',
        component: () => import('../views/money/index.vue')
      },
      {
        path: 'wallet',
        name: 'Wallet',
        component: () => import('../views/wallet/index.vue')
      },
      {
        path: 'test',
        name: 'test',
        component: () => import('../views/test/index.vue')
      },
      {
        path: 'user-set',
        name: 'user-set',
        component: () => import('../views/user-set/index.vue')
      },
      {
        path: 'real-name',
        name: 'real-name',
        component: () => import('../views/real-name/index.vue')
      },

    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
